package com.zw.admin.server.model;


public enum ResponseEnum {

        SUCCESS(200,"Success"),
        UNKNOWN_EXCEPTION(500, "未知异常"),
        NULL_ATTR(101,"属性为空"),
        NO_HANDLER_FOUND_EXCEPTION(404, "不存在"),
        LICENSE_INVALID(601, "证书无效"),
        LICENSE_INSTALL_FAIL(602, "证书安装失败"),
        FILE_UPLOAD_FAIL(410,"文件上传失败"),
        DUPLICATE_KEY_EXCEPTION(701, "数据库中已存在该记录"),
        CAPTCHA_EXCEPTION(100,"验证码错误"),
        PASSWORD_EXCEPTION(100,"用户或密码错误"),
        ACCOUNT_LOCK_EXCEPTION(100,"账户锁定"),
        AUTHORIZATION_EXCEPTION(501, "无操作权限"),
    	IMG_NOT_FOUND_EXCEPTION(505, "图片错误"),
        FAILURE_EXCEPTION(506, "操作失败"),
        ARGUMENT_NOT_VAILD(502,"参数校验不通过"),
        VISIT_TIME_EXCEPTION(507, "访问时间重复"),
        VISITOR_NOT_EXIST(601, "访客记录不存在"),
        VISITOR_END_TIME_EXPIRE(602, "访客已过期"),
        VISITOR_STATE_UNKNOWN(601, "访客状态未知"),
        RESULT_ERROR(603, "查询结果异常");

        private Integer code;

        private String msg;

        private ResponseEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

}


